<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>GtkProgressBar</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.74.0">
<link rel="home" href="index.html" title="GTK+ Reference Manual">
<link rel="up" href="DisplayWidgets.html" title="Display Widgets">
<link rel="prev" href="GtkLabel.html" title="GtkLabel">
<link rel="next" href="GtkStatusbar.html" title="GtkStatusbar">
<meta name="generator" content="GTK-Doc V1.11 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
<link rel="part" href="gtk.html" title="Part I. GTK+ Overview">
<link rel="part" href="gtkbase.html" title="Part II. GTK+ Core Reference">
<link rel="part" href="gtkobjects.html" title="Part III. GTK+ Widgets and Objects">
<link rel="chapter" href="ch01.html" title="Object Hierarchy">
<link rel="chapter" href="ch02.html" title="Widget Gallery">
<link rel="chapter" href="WindowWidgets.html" title="Windows">
<link rel="chapter" href="DisplayWidgets.html" title="Display Widgets">
<link rel="chapter" href="ButtonWidgets.html" title="Buttons and Toggles">
<link rel="chapter" href="NumericEntry.html" title="Numeric/Text Data Entry">
<link rel="chapter" href="TextWidgetObjects.html" title="Multiline Text Editor">
<link rel="chapter" href="TreeWidgetObjects.html" title="Tree, List and Icon Grid Widgets">
<link rel="chapter" href="MenusAndCombos.html" title="Menus, Combo Box, Toolbar">
<link rel="chapter" href="Actions.html" title="Action-based menus and toolbars">
<link rel="chapter" href="SelectorWidgets.html" title="Selectors (File/Font/Color/Input Devices)">
<link rel="chapter" href="LayoutContainers.html" title="Layout Containers">
<link rel="chapter" href="Ornaments.html" title="Ornaments">
<link rel="chapter" href="ScrollingWidgets.html" title="Scrolling">
<link rel="chapter" href="Printing.html" title="Printing">
<link rel="chapter" href="MiscObjects.html" title="Miscellaneous">
<link rel="chapter" href="AbstractObjects.html" title="Abstract Base Classes">
<link rel="chapter" href="PlugSocket.html" title="Cross-process Embedding">
<link rel="chapter" href="SpecialObjects.html" title="Special-purpose features">
<link rel="chapter" href="RecentDocuments.html" title="Recently Used Documents">
<link rel="chapter" href="Builder.html" title="Interface builder">
<link rel="chapter" href="DeprecatedObjects.html" title="Deprecated">
<link rel="part" href="migrating.html" title="Part IV. Migrating from Previous Versions of GTK+">
<link rel="chapter" href="gtk-migrating-checklist.html" title="Migration Checklist">
<link rel="chapter" href="gtk-migrating-GtkFileChooser.html" title="Migrating from GtkFileSelection to GtkFileChooser">
<link rel="chapter" href="gtk-migrating-GtkAction.html" title="Migrating from old menu and toolbar systems to GtkAction">
<link rel="chapter" href="gtk-migrating-GtkComboBox.html" title="Migrating from GtkOptionMenu and GtkCombo to GtkComboBox and GtkComboBoxEntry">
<link rel="chapter" href="gtk-migrating-GtkIconView.html" title="Migrating from GnomeIconList to GtkIconView">
<link rel="chapter" href="gtk-migrating-GtkAboutDialog.html" title="Migrating from GnomeAbout to GtkAboutDialog">
<link rel="chapter" href="gtk-migrating-GtkColorButton.html" title="Migrating from GnomeColorPicker to GtkColorButton">
<link rel="chapter" href="gtk-migrating-GtkAssistant.html" title="Migrating from GnomeDruid to GtkAssistant">
<link rel="chapter" href="gtk-migrating-GtkRecentChooser.html" title="Migrating from EggRecent to GtkRecentChooser">
<link rel="chapter" href="gtk-migrating-GtkLinkButton.html" title="Migrating from GnomeHRef to GtkLinkButton">
<link rel="chapter" href="gtk-migrating-GtkBuilder.html" title="Migrating from libglade to GtkBuilder">
<link rel="chapter" href="gtk-migrating-tooltips.html" title="Migrating from GtkTooltips to GtkTooltip">
<link rel="part" href="pt05.html" title="Part V. GTK+ Tools">
<link rel="glossary" href="glossary.html" title="Glossary">
<link rel="index" href="api-index-full.html" title="Index of all symbols">
<link rel="index" href="api-index-deprecated.html" title="Index of deprecated symbols">
<link rel="index" href="api-index-2-2.html" title="Index of new symbols in 2.2">
<link rel="index" href="api-index-2-4.html" title="Index of new symbols in 2.4">
<link rel="index" href="api-index-2-6.html" title="Index of new symbols in 2.6">
<link rel="index" href="api-index-2-8.html" title="Index of new symbols in 2.8">
<link rel="index" href="api-index-2-10.html" title="Index of new symbols in 2.10">
<link rel="index" href="api-index-2-12.html" title="Index of new symbols in 2.12">
<link rel="index" href="api-index-2-14.html" title="Index of new symbols in 2.14">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="GtkLabel.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="DisplayWidgets.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">GTK+ Reference Manual</th>
<td><a accesskey="n" href="GtkStatusbar.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#GtkProgressBar.synopsis" class="shortcut">Top</a>
                 | 
                <a href="#GtkProgressBar.description" class="shortcut">Description</a>
                 | 
                <a href="#GtkProgressBar.object-hierarchy" class="shortcut">Object Hierarchy</a>
                 | 
                <a href="#GtkProgressBar.implemented-interfaces" class="shortcut">Implemented Interfaces</a>
                 | 
                <a href="#GtkProgressBar.properties" class="shortcut">Properties</a>
                 | 
                <a href="#GtkProgressBar.style-properties" class="shortcut">Style Properties</a>
</td></tr>
</table>
<div class="refentry" lang="en">
<a name="GtkProgressBar"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="GtkProgressBar.top_of_page"></a>GtkProgressBar</span></h2>
<p>GtkProgressBar — A widget which indicates progress visually</p>
</td>
<td valign="top" align="right"><img src="progressbar.png"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<a name="GtkProgressBar.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">

#include &lt;gtk/gtk.h&gt;

                    <a class="link" href="GtkProgressBar.html#GtkProgressBar-struct" title="GtkProgressBar">GtkProgressBar</a>;
<a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a>*          <a class="link" href="GtkProgressBar.html#gtk-progress-bar-new" title="gtk_progress_bar_new ()">gtk_progress_bar_new</a>                (void);
void                <a class="link" href="GtkProgressBar.html#gtk-progress-bar-pulse" title="gtk_progress_bar_pulse ()">gtk_progress_bar_pulse</a>              (<a class="link" href="GtkProgressBar.html" title="GtkProgressBar">GtkProgressBar</a> *pbar);
void                <a class="link" href="GtkProgressBar.html#gtk-progress-bar-set-text" title="gtk_progress_bar_set_text ()">gtk_progress_bar_set_text</a>           (<a class="link" href="GtkProgressBar.html" title="GtkProgressBar">GtkProgressBar</a> *pbar,
                                                         const <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a> *text);
void                <a class="link" href="GtkProgressBar.html#gtk-progress-bar-set-fraction" title="gtk_progress_bar_set_fraction ()">gtk_progress_bar_set_fraction</a>       (<a class="link" href="GtkProgressBar.html" title="GtkProgressBar">GtkProgressBar</a> *pbar,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> fraction);
void                <a class="link" href="GtkProgressBar.html#gtk-progress-bar-set-pulse-step" title="gtk_progress_bar_set_pulse_step ()">gtk_progress_bar_set_pulse_step</a>     (<a class="link" href="GtkProgressBar.html" title="GtkProgressBar">GtkProgressBar</a> *pbar,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> fraction);
void                <a class="link" href="GtkProgressBar.html#gtk-progress-bar-set-orientation" title="gtk_progress_bar_set_orientation ()">gtk_progress_bar_set_orientation</a>    (<a class="link" href="GtkProgressBar.html" title="GtkProgressBar">GtkProgressBar</a> *pbar,
                                                         <a class="link" href="GtkProgressBar.html#GtkProgressBarOrientation" title="enum GtkProgressBarOrientation">GtkProgressBarOrientation</a> orientation);
void                <a class="link" href="GtkProgressBar.html#gtk-progress-bar-set-ellipsize" title="gtk_progress_bar_set_ellipsize ()">gtk_progress_bar_set_ellipsize</a>      (<a class="link" href="GtkProgressBar.html" title="GtkProgressBar">GtkProgressBar</a> *pbar,
                                                         <a
href="/usr/share/gtk-doc/html/pango/pango-Layout-Objects.html#PangoEllipsizeMode"
>PangoEllipsizeMode</a> mode);
enum                <a class="link" href="GtkProgressBar.html#GtkProgressBarOrientation" title="enum GtkProgressBarOrientation">GtkProgressBarOrientation</a>;
const <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a>*        <a class="link" href="GtkProgressBar.html#gtk-progress-bar-get-text" title="gtk_progress_bar_get_text ()">gtk_progress_bar_get_text</a>           (<a class="link" href="GtkProgressBar.html" title="GtkProgressBar">GtkProgressBar</a> *pbar);
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a>             <a class="link" href="GtkProgressBar.html#gtk-progress-bar-get-fraction" title="gtk_progress_bar_get_fraction ()">gtk_progress_bar_get_fraction</a>       (<a class="link" href="GtkProgressBar.html" title="GtkProgressBar">GtkProgressBar</a> *pbar);
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a>             <a class="link" href="GtkProgressBar.html#gtk-progress-bar-get-pulse-step" title="gtk_progress_bar_get_pulse_step ()">gtk_progress_bar_get_pulse_step</a>     (<a class="link" href="GtkProgressBar.html" title="GtkProgressBar">GtkProgressBar</a> *pbar);
<a class="link" href="GtkProgressBar.html#GtkProgressBarOrientation" title="enum GtkProgressBarOrientation">GtkProgressBarOrientation</a>  <a class="link" href="GtkProgressBar.html#gtk-progress-bar-get-orientation" title="gtk_progress_bar_get_orientation ()">gtk_progress_bar_get_orientation</a>
                                                        (<a class="link" href="GtkProgressBar.html" title="GtkProgressBar">GtkProgressBar</a> *pbar);
<a
href="/usr/share/gtk-doc/html/pango/pango-Layout-Objects.html#PangoEllipsizeMode"
>PangoEllipsizeMode</a>  <a class="link" href="GtkProgressBar.html#gtk-progress-bar-get-ellipsize" title="gtk_progress_bar_get_ellipsize ()">gtk_progress_bar_get_ellipsize</a>      (<a class="link" href="GtkProgressBar.html" title="GtkProgressBar">GtkProgressBar</a> *pbar);
<a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a>*          <a class="link" href="GtkProgressBar.html#gtk-progress-bar-new-with-adjustment" title="gtk_progress_bar_new_with_adjustment ()">gtk_progress_bar_new_with_adjustment</a>
                                                        (<a class="link" href="GtkAdjustment.html" title="GtkAdjustment">GtkAdjustment</a> *adjustment);
void                <a class="link" href="GtkProgressBar.html#gtk-progress-bar-set-bar-style" title="gtk_progress_bar_set_bar_style ()">gtk_progress_bar_set_bar_style</a>      (<a class="link" href="GtkProgressBar.html" title="GtkProgressBar">GtkProgressBar</a> *pbar,
                                                         <a class="link" href="GtkProgressBar.html#GtkProgressBarStyle" title="enum GtkProgressBarStyle">GtkProgressBarStyle</a> style);
enum                <a class="link" href="GtkProgressBar.html#GtkProgressBarStyle" title="enum GtkProgressBarStyle">GtkProgressBarStyle</a>;
void                <a class="link" href="GtkProgressBar.html#gtk-progress-bar-set-discrete-blocks" title="gtk_progress_bar_set_discrete_blocks ()">gtk_progress_bar_set_discrete_blocks</a>
                                                        (<a class="link" href="GtkProgressBar.html" title="GtkProgressBar">GtkProgressBar</a> *pbar,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"
>guint</a> blocks);
void                <a class="link" href="GtkProgressBar.html#gtk-progress-bar-set-activity-step" title="gtk_progress_bar_set_activity_step ()">gtk_progress_bar_set_activity_step</a>  (<a class="link" href="GtkProgressBar.html" title="GtkProgressBar">GtkProgressBar</a> *pbar,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"
>guint</a> step);
void                <a class="link" href="GtkProgressBar.html#gtk-progress-bar-set-activity-blocks" title="gtk_progress_bar_set_activity_blocks ()">gtk_progress_bar_set_activity_blocks</a>
                                                        (<a class="link" href="GtkProgressBar.html" title="GtkProgressBar">GtkProgressBar</a> *pbar,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"
>guint</a> blocks);
void                <a class="link" href="GtkProgressBar.html#gtk-progress-bar-update" title="gtk_progress_bar_update ()">gtk_progress_bar_update</a>             (<a class="link" href="GtkProgressBar.html" title="GtkProgressBar">GtkProgressBar</a> *pbar,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> percentage);
</pre>
</div>
<div class="refsect1" lang="en">
<a name="GtkProgressBar.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="synopsis">
  <a
href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject"
>GObject</a>
   +----<a
href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GInitiallyUnowned"
>GInitiallyUnowned</a>
         +----<a class="link" href="GtkObject.html" title="GtkObject">GtkObject</a>
               +----<a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a>
                     +----<a class="link" href="GtkProgress.html" title="GtkProgress">GtkProgress</a>
                           +----GtkProgressBar
</pre>
</div>
<div class="refsect1" lang="en">
<a name="GtkProgressBar.implemented-interfaces"></a><h2>Implemented Interfaces</h2>
<p>
GtkProgressBar implements
 AtkImplementorIface and  <a class="link" href="gtk-gtkbuildable.html#GtkBuildable">GtkBuildable</a>.</p>
</div>
<div class="refsect1" lang="en">
<a name="GtkProgressBar.properties"></a><h2>Properties</h2>
<pre class="synopsis">
  "<a class="link" href="GtkProgressBar.html#GtkProgressBar--activity-blocks" title='The "activity-blocks" property'>activity-blocks</a>"          <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"
>guint</a>                 : Read / Write
  "<a class="link" href="GtkProgressBar.html#GtkProgressBar--activity-step" title='The "activity-step" property'>activity-step</a>"            <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"
>guint</a>                 : Read / Write
  "<a class="link" href="GtkProgressBar.html#GtkProgressBar--adjustment" title='The "adjustment" property'>adjustment</a>"               <a class="link" href="GtkAdjustment.html" title="GtkAdjustment">GtkAdjustment</a>*        : Read / Write
  "<a class="link" href="GtkProgressBar.html#GtkProgressBar--bar-style" title='The "bar-style" property'>bar-style</a>"                <a class="link" href="GtkProgressBar.html#GtkProgressBarStyle" title="enum GtkProgressBarStyle">GtkProgressBarStyle</a>   : Read / Write
  "<a class="link" href="GtkProgressBar.html#GtkProgressBar--discrete-blocks" title='The "discrete-blocks" property'>discrete-blocks</a>"          <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"
>guint</a>                 : Read / Write
  "<a class="link" href="GtkProgressBar.html#GtkProgressBar--ellipsize" title='The "ellipsize" property'>ellipsize</a>"                <a
href="/usr/share/gtk-doc/html/pango/pango-Layout-Objects.html#PangoEllipsizeMode"
>PangoEllipsizeMode</a>    : Read / Write
  "<a class="link" href="GtkProgressBar.html#GtkProgressBar--fraction" title='The "fraction" property'>fraction</a>"                 <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a>               : Read / Write
  "<a class="link" href="GtkProgressBar.html#GtkProgressBar--orientation" title='The "orientation" property'>orientation</a>"              <a class="link" href="GtkProgressBar.html#GtkProgressBarOrientation" title="enum GtkProgressBarOrientation">GtkProgressBarOrientation</a>  : Read / Write
  "<a class="link" href="GtkProgressBar.html#GtkProgressBar--pulse-step" title='The "pulse-step" property'>pulse-step</a>"               <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a>               : Read / Write
  "<a class="link" href="GtkProgressBar.html#GtkProgressBar--text" title='The "text" property'>text</a>"                     <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a>*                : Read / Write
</pre>
</div>
<div class="refsect1" lang="en">
<a name="GtkProgressBar.style-properties"></a><h2>Style Properties</h2>
<pre class="synopsis">
  "<a class="link" href="GtkProgressBar.html#GtkProgressBar--s-min-horizontal-bar-height" title='The "min-horizontal-bar-height" style property'>min-horizontal-bar-height</a>" <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a>                  : Read / Write
  "<a class="link" href="GtkProgressBar.html#GtkProgressBar--s-min-horizontal-bar-width" title='The "min-horizontal-bar-width" style property'>min-horizontal-bar-width</a>" <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a>                  : Read / Write
  "<a class="link" href="GtkProgressBar.html#GtkProgressBar--s-min-vertical-bar-height" title='The "min-vertical-bar-height" style property'>min-vertical-bar-height</a>"  <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a>                  : Read / Write
  "<a class="link" href="GtkProgressBar.html#GtkProgressBar--s-min-vertical-bar-width" title='The "min-vertical-bar-width" style property'>min-vertical-bar-width</a>"   <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a>                  : Read / Write
  "<a class="link" href="GtkProgressBar.html#GtkProgressBar--s-xspacing" title='The "xspacing" style property'>xspacing</a>"                 <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a>                  : Read / Write
  "<a class="link" href="GtkProgressBar.html#GtkProgressBar--s-yspacing" title='The "yspacing" style property'>yspacing</a>"                 <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a>                  : Read / Write
</pre>
</div>
<div class="refsect1" lang="en">
<a name="GtkProgressBar.description"></a><h2>Description</h2>
<p>
The <a class="link" href="GtkProgressBar.html" title="GtkProgressBar"><span class="type">GtkProgressBar</span></a> is typically used to display the progress of a long
running operation.  It provides a visual clue that processing
is underway.  The <a class="link" href="GtkProgressBar.html" title="GtkProgressBar"><span class="type">GtkProgressBar</span></a> can be used in two different
modes: percentage mode and activity mode.
</p>
<p>
When an application can determine how much work needs to take place
(e.g. read a fixed number of bytes from a file) and can monitor its
progress, it can use the <a class="link" href="GtkProgressBar.html" title="GtkProgressBar"><span class="type">GtkProgressBar</span></a> in percentage mode and the user
sees a growing bar indicating the percentage of the work that has
been completed.  In this mode, the application is required to call
<a class="link" href="GtkProgressBar.html#gtk-progress-bar-set-fraction" title="gtk_progress_bar_set_fraction ()"><code class="function">gtk_progress_bar_set_fraction()</code></a> periodically to update the progress bar.
</p>
<p>
When an application has no accurate way of knowing the amount of work
to do, it can use the <a class="link" href="GtkProgressBar.html" title="GtkProgressBar"><span class="type">GtkProgressBar</span></a> in activity mode, which shows activity
by a block moving back and forth within the progress area. In this mode,
the application is required to call <a class="link" href="GtkProgressBar.html#gtk-progress-bar-pulse" title="gtk_progress_bar_pulse ()"><code class="function">gtk_progress_bar_pulse()</code></a> perodically
to update the progress bar.
</p>
<p>
There is quite a bit of flexibility provided to control the appearance
of the <a class="link" href="GtkProgressBar.html" title="GtkProgressBar"><span class="type">GtkProgressBar</span></a>.  Functions are provided to control the
orientation of the bar, optional text can be displayed along with
the bar, and the step size used in activity mode can be set.
</p>
<div class="note" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Note</h3>
<p>
The <a class="link" href="GtkProgressBar.html" title="GtkProgressBar"><span class="type">GtkProgressBar</span></a>/<a class="link" href="GtkProgress.html" title="GtkProgress"><span class="type">GtkProgress</span></a> API in GTK 1.2 was bloated, needlessly complex
and hard to use properly.  Therefore <a class="link" href="GtkProgress.html" title="GtkProgress"><span class="type">GtkProgress</span></a> has been deprecated
completely and the <a class="link" href="GtkProgressBar.html" title="GtkProgressBar"><span class="type">GtkProgressBar</span></a> API has been reduced to the following 10
functions: <a class="link" href="GtkProgressBar.html#gtk-progress-bar-new" title="gtk_progress_bar_new ()"><code class="function">gtk_progress_bar_new()</code></a>, <a class="link" href="GtkProgressBar.html#gtk-progress-bar-pulse" title="gtk_progress_bar_pulse ()"><code class="function">gtk_progress_bar_pulse()</code></a>,
<a class="link" href="GtkProgressBar.html#gtk-progress-bar-set-text" title="gtk_progress_bar_set_text ()"><code class="function">gtk_progress_bar_set_text()</code></a>, <a class="link" href="GtkProgressBar.html#gtk-progress-bar-set-fraction" title="gtk_progress_bar_set_fraction ()"><code class="function">gtk_progress_bar_set_fraction()</code></a>,
<a class="link" href="GtkProgressBar.html#gtk-progress-bar-set-pulse-step" title="gtk_progress_bar_set_pulse_step ()"><code class="function">gtk_progress_bar_set_pulse_step()</code></a>, <a class="link" href="GtkProgressBar.html#gtk-progress-bar-set-orientation" title="gtk_progress_bar_set_orientation ()"><code class="function">gtk_progress_bar_set_orientation()</code></a>,
<a class="link" href="GtkProgressBar.html#gtk-progress-bar-get-text" title="gtk_progress_bar_get_text ()"><code class="function">gtk_progress_bar_get_text()</code></a>, <a class="link" href="GtkProgressBar.html#gtk-progress-bar-get-fraction" title="gtk_progress_bar_get_fraction ()"><code class="function">gtk_progress_bar_get_fraction()</code></a>,
<a class="link" href="GtkProgressBar.html#gtk-progress-bar-get-pulse-step" title="gtk_progress_bar_get_pulse_step ()"><code class="function">gtk_progress_bar_get_pulse_step()</code></a>, <a class="link" href="GtkProgressBar.html#gtk-progress-bar-get-orientation" title="gtk_progress_bar_get_orientation ()"><code class="function">gtk_progress_bar_get_orientation()</code></a>.
These have been grouped at the beginning of this section, followed by
a large chunk of deprecated 1.2 compatibility functions.
</p>
</div>
</div>
<div class="refsect1" lang="en">
<a name="GtkProgressBar.details"></a><h2>Details</h2>
<div class="refsect2" lang="en">
<a name="GtkProgressBar-struct"></a><h3>GtkProgressBar</h3>
<pre class="programlisting">typedef struct _GtkProgressBar GtkProgressBar;</pre>
<p>
The <a class="link" href="GtkProgressBar.html#GtkProgressBar-struct" title="GtkProgressBar"><span class="type">GtkProgressBar</span></a> struct contains private data only,
and should be accessed using the functions below.
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="gtk-progress-bar-new"></a><h3>gtk_progress_bar_new ()</h3>
<pre class="programlisting"><a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a>*          gtk_progress_bar_new                (void);</pre>
<p>
Creates a new <a class="link" href="GtkProgressBar.html" title="GtkProgressBar"><span class="type">GtkProgressBar</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a <a class="link" href="GtkProgressBar.html" title="GtkProgressBar"><span class="type">GtkProgressBar</span></a>.
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="gtk-progress-bar-pulse"></a><h3>gtk_progress_bar_pulse ()</h3>
<pre class="programlisting">void                gtk_progress_bar_pulse              (<a class="link" href="GtkProgressBar.html" title="GtkProgressBar">GtkProgressBar</a> *pbar);</pre>
<p>
Indicates that some progress is made, but you don't know how much.
Causes the progress bar to enter "activity mode," where a block
bounces back and forth. Each call to <a class="link" href="GtkProgressBar.html#gtk-progress-bar-pulse" title="gtk_progress_bar_pulse ()"><code class="function">gtk_progress_bar_pulse()</code></a>
causes the block to move by a little bit (the amount of movement
per pulse is determined by <a class="link" href="GtkProgressBar.html#gtk-progress-bar-set-pulse-step" title="gtk_progress_bar_set_pulse_step ()"><code class="function">gtk_progress_bar_set_pulse_step()</code></a>).</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>pbar</code></em> :</span></p></td>
<td> a <a class="link" href="GtkProgressBar.html" title="GtkProgressBar"><span class="type">GtkProgressBar</span></a>
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="gtk-progress-bar-set-text"></a><h3>gtk_progress_bar_set_text ()</h3>
<pre class="programlisting">void                gtk_progress_bar_set_text           (<a class="link" href="GtkProgressBar.html" title="GtkProgressBar">GtkProgressBar</a> *pbar,
                                                         const <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a> *text);</pre>
<p>
Causes the given <em class="parameter"><code>text</code></em> to appear superimposed on the progress bar.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>pbar</code></em> :</span></p></td>
<td> a <a class="link" href="GtkProgressBar.html" title="GtkProgressBar"><span class="type">GtkProgressBar</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>text</code></em> :</span></p></td>
<td> a UTF-8 string, or <a
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL--CAPS"
><code class="literal">NULL</code></a> 
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="gtk-progress-bar-set-fraction"></a><h3>gtk_progress_bar_set_fraction ()</h3>
<pre class="programlisting">void                gtk_progress_bar_set_fraction       (<a class="link" href="GtkProgressBar.html" title="GtkProgressBar">GtkProgressBar</a> *pbar,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> fraction);</pre>
<p>
Causes the progress bar to "fill in" the given fraction
of the bar. The fraction should be between 0.0 and 1.0,
inclusive.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>pbar</code></em> :</span></p></td>
<td> a <a class="link" href="GtkProgressBar.html" title="GtkProgressBar"><span class="type">GtkProgressBar</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>fraction</code></em> :</span></p></td>
<td> fraction of the task that's been completed
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="gtk-progress-bar-set-pulse-step"></a><h3>gtk_progress_bar_set_pulse_step ()</h3>
<pre class="programlisting">void                gtk_progress_bar_set_pulse_step     (<a class="link" href="GtkProgressBar.html" title="GtkProgressBar">GtkProgressBar</a> *pbar,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> fraction);</pre>
<p>
Sets the fraction of total progress bar length to move the
bouncing block for each call to <a class="link" href="GtkProgressBar.html#gtk-progress-bar-pulse" title="gtk_progress_bar_pulse ()"><code class="function">gtk_progress_bar_pulse()</code></a>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>pbar</code></em> :</span></p></td>
<td> a <a class="link" href="GtkProgressBar.html" title="GtkProgressBar"><span class="type">GtkProgressBar</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>fraction</code></em> :</span></p></td>
<td> fraction between 0.0 and 1.0
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="gtk-progress-bar-set-orientation"></a><h3>gtk_progress_bar_set_orientation ()</h3>
<pre class="programlisting">void                gtk_progress_bar_set_orientation    (<a class="link" href="GtkProgressBar.html" title="GtkProgressBar">GtkProgressBar</a> *pbar,
                                                         <a class="link" href="GtkProgressBar.html#GtkProgressBarOrientation" title="enum GtkProgressBarOrientation">GtkProgressBarOrientation</a> orientation);</pre>
<p>
Causes the progress bar to switch to a different orientation
(left-to-right, right-to-left, top-to-bottom, or bottom-to-top).</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>pbar</code></em> :</span></p></td>
<td> a <a class="link" href="GtkProgressBar.html" title="GtkProgressBar"><span class="type">GtkProgressBar</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>orientation</code></em> :</span></p></td>
<td> orientation of the progress bar
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="gtk-progress-bar-set-ellipsize"></a><h3>gtk_progress_bar_set_ellipsize ()</h3>
<pre class="programlisting">void                gtk_progress_bar_set_ellipsize      (<a class="link" href="GtkProgressBar.html" title="GtkProgressBar">GtkProgressBar</a> *pbar,
                                                         <a
href="/usr/share/gtk-doc/html/pango/pango-Layout-Objects.html#PangoEllipsizeMode"
>PangoEllipsizeMode</a> mode);</pre>
<p>
Sets the mode used to ellipsize (add an ellipsis: "...") the text 
if there is not enough space to render the entire string.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>pbar</code></em> :</span></p></td>
<td> a <a class="link" href="GtkProgressBar.html" title="GtkProgressBar"><span class="type">GtkProgressBar</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>mode</code></em> :</span></p></td>
<td> a <a
href="/usr/share/gtk-doc/html/pango/pango-Layout-Objects.html#PangoEllipsizeMode"
><span class="type">PangoEllipsizeMode</span></a>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.6</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="GtkProgressBarOrientation"></a><h3>enum GtkProgressBarOrientation</h3>
<pre class="programlisting">typedef enum
{
  GTK_PROGRESS_LEFT_TO_RIGHT,
  GTK_PROGRESS_RIGHT_TO_LEFT,
  GTK_PROGRESS_BOTTOM_TO_TOP,
  GTK_PROGRESS_TOP_TO_BOTTOM
} GtkProgressBarOrientation;
</pre>
<p>
An enumeration representing possible orientations and growth
directions for the visible progress bar.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><a name="GTK-PROGRESS-LEFT-TO-RIGHT--CAPS"></a><span class="term"><code class="literal">GTK_PROGRESS_LEFT_TO_RIGHT</code></span></p></td>
<td>A horizontal progress bar growing from left to right.
</td>
</tr>
<tr>
<td><p><a name="GTK-PROGRESS-RIGHT-TO-LEFT--CAPS"></a><span class="term"><code class="literal">GTK_PROGRESS_RIGHT_TO_LEFT</code></span></p></td>
<td>A horizontal progress bar growing from right to left.
</td>
</tr>
<tr>
<td><p><a name="GTK-PROGRESS-BOTTOM-TO-TOP--CAPS"></a><span class="term"><code class="literal">GTK_PROGRESS_BOTTOM_TO_TOP</code></span></p></td>
<td>A vertical progress bar growing from bottom to top.
</td>
</tr>
<tr>
<td><p><a name="GTK-PROGRESS-TOP-TO-BOTTOM--CAPS"></a><span class="term"><code class="literal">GTK_PROGRESS_TOP_TO_BOTTOM</code></span></p></td>
<td>A vertical progress bar growing from top to bottom.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="gtk-progress-bar-get-text"></a><h3>gtk_progress_bar_get_text ()</h3>
<pre class="programlisting">const <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a>*        gtk_progress_bar_get_text           (<a class="link" href="GtkProgressBar.html" title="GtkProgressBar">GtkProgressBar</a> *pbar);</pre>
<p>
Retrieves the text displayed superimposed on the progress bar,
if any, otherwise <a
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL--CAPS"
><code class="literal">NULL</code></a>. The return value is a reference
to the text, not a copy of it, so will become invalid
if you change the text in the progress bar.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>pbar</code></em> :</span></p></td>
<td> a <a class="link" href="GtkProgressBar.html" title="GtkProgressBar"><span class="type">GtkProgressBar</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> text, or <a
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL--CAPS"
><code class="literal">NULL</code></a>; this string is owned by the widget
and should not be modified or freed.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="gtk-progress-bar-get-fraction"></a><h3>gtk_progress_bar_get_fraction ()</h3>
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a>             gtk_progress_bar_get_fraction       (<a class="link" href="GtkProgressBar.html" title="GtkProgressBar">GtkProgressBar</a> *pbar);</pre>
<p>
Returns the current fraction of the task that's been completed.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>pbar</code></em> :</span></p></td>
<td> a <a class="link" href="GtkProgressBar.html" title="GtkProgressBar"><span class="type">GtkProgressBar</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> a fraction from 0.0 to 1.0
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="gtk-progress-bar-get-pulse-step"></a><h3>gtk_progress_bar_get_pulse_step ()</h3>
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a>             gtk_progress_bar_get_pulse_step     (<a class="link" href="GtkProgressBar.html" title="GtkProgressBar">GtkProgressBar</a> *pbar);</pre>
<p>
Retrieves the pulse step set with <a class="link" href="GtkProgressBar.html#gtk-progress-bar-set-pulse-step" title="gtk_progress_bar_set_pulse_step ()"><code class="function">gtk_progress_bar_set_pulse_step()</code></a></p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>pbar</code></em> :</span></p></td>
<td> a <a class="link" href="GtkProgressBar.html" title="GtkProgressBar"><span class="type">GtkProgressBar</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> a fraction from 0.0 to 1.0
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="gtk-progress-bar-get-orientation"></a><h3>gtk_progress_bar_get_orientation ()</h3>
<pre class="programlisting"><a class="link" href="GtkProgressBar.html#GtkProgressBarOrientation" title="enum GtkProgressBarOrientation">GtkProgressBarOrientation</a>  gtk_progress_bar_get_orientation
                                                        (<a class="link" href="GtkProgressBar.html" title="GtkProgressBar">GtkProgressBar</a> *pbar);</pre>
<p>
Retrieves the current progress bar orientation.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>pbar</code></em> :</span></p></td>
<td> a <a class="link" href="GtkProgressBar.html" title="GtkProgressBar"><span class="type">GtkProgressBar</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> orientation of the progress bar
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="gtk-progress-bar-get-ellipsize"></a><h3>gtk_progress_bar_get_ellipsize ()</h3>
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/pango/pango-Layout-Objects.html#PangoEllipsizeMode"
>PangoEllipsizeMode</a>  gtk_progress_bar_get_ellipsize      (<a class="link" href="GtkProgressBar.html" title="GtkProgressBar">GtkProgressBar</a> *pbar);</pre>
<p>
Returns the ellipsizing position of the progressbar. 
See <a class="link" href="GtkProgressBar.html#gtk-progress-bar-set-ellipsize" title="gtk_progress_bar_set_ellipsize ()"><code class="function">gtk_progress_bar_set_ellipsize()</code></a>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>pbar</code></em> :</span></p></td>
<td> a <a class="link" href="GtkProgressBar.html" title="GtkProgressBar"><span class="type">GtkProgressBar</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> <a
href="/usr/share/gtk-doc/html/pango/pango-Layout-Objects.html#PangoEllipsizeMode"
><span class="type">PangoEllipsizeMode</span></a>

</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.6</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="gtk-progress-bar-new-with-adjustment"></a><h3>gtk_progress_bar_new_with_adjustment ()</h3>
<pre class="programlisting"><a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a>*          gtk_progress_bar_new_with_adjustment
                                                        (<a class="link" href="GtkAdjustment.html" title="GtkAdjustment">GtkAdjustment</a> *adjustment);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gtk_progress_bar_new_with_adjustment</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
Creates a new <a class="link" href="GtkProgressBar.html" title="GtkProgressBar"><span class="type">GtkProgressBar</span></a> with an associated <a class="link" href="GtkAdjustment.html" title="GtkAdjustment"><span class="type">GtkAdjustment</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>adjustment</code></em> :</span></p></td>
<td>a <a class="link" href="GtkAdjustment.html" title="GtkAdjustment"><span class="type">GtkAdjustment</span></a>.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a <a class="link" href="GtkProgressBar.html" title="GtkProgressBar"><span class="type">GtkProgressBar</span></a>.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="gtk-progress-bar-set-bar-style"></a><h3>gtk_progress_bar_set_bar_style ()</h3>
<pre class="programlisting">void                gtk_progress_bar_set_bar_style      (<a class="link" href="GtkProgressBar.html" title="GtkProgressBar">GtkProgressBar</a> *pbar,
                                                         <a class="link" href="GtkProgressBar.html#GtkProgressBarStyle" title="enum GtkProgressBarStyle">GtkProgressBarStyle</a> style);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gtk_progress_bar_set_bar_style</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
Sets the style of the <a class="link" href="GtkProgressBar.html" title="GtkProgressBar"><span class="type">GtkProgressBar</span></a>.  The default style is
<a class="link" href="GtkProgressBar.html#GTK-PROGRESS-CONTINUOUS--CAPS"><code class="literal">GTK_PROGRESS_CONTINUOUS</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>pbar</code></em> :</span></p></td>
<td>a <a class="link" href="GtkProgressBar.html" title="GtkProgressBar"><span class="type">GtkProgressBar</span></a>.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>style</code></em> :</span></p></td>
<td>a <a class="link" href="GtkProgressBar.html#GtkProgressBarStyle" title="enum GtkProgressBarStyle"><span class="type">GtkProgressBarStyle</span></a> value indicating the desired style.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="GtkProgressBarStyle"></a><h3>enum GtkProgressBarStyle</h3>
<pre class="programlisting">typedef enum
{
  GTK_PROGRESS_CONTINUOUS,
  GTK_PROGRESS_DISCRETE
} GtkProgressBarStyle;
</pre>
<p>
An enumeration representing the styles for drawing the progress bar.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><a name="GTK-PROGRESS-CONTINUOUS--CAPS"></a><span class="term"><code class="literal">GTK_PROGRESS_CONTINUOUS</code></span></p></td>
<td>The progress bar grows in a smooth, continuous manner.
</td>
</tr>
<tr>
<td><p><a name="GTK-PROGRESS-DISCRETE--CAPS"></a><span class="term"><code class="literal">GTK_PROGRESS_DISCRETE</code></span></p></td>
<td>The progress bar grows in discrete, visible blocks.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="gtk-progress-bar-set-discrete-blocks"></a><h3>gtk_progress_bar_set_discrete_blocks ()</h3>
<pre class="programlisting">void                gtk_progress_bar_set_discrete_blocks
                                                        (<a class="link" href="GtkProgressBar.html" title="GtkProgressBar">GtkProgressBar</a> *pbar,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"
>guint</a> blocks);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gtk_progress_bar_set_discrete_blocks</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
Sets the number of blocks that the progress bar is divided into
when the style is <a class="link" href="GtkProgressBar.html#GTK-PROGRESS-DISCRETE--CAPS"><code class="literal">GTK_PROGRESS_DISCRETE</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>pbar</code></em> :</span></p></td>
<td>a <a class="link" href="GtkProgressBar.html" title="GtkProgressBar"><span class="type">GtkProgressBar</span></a>.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>blocks</code></em> :</span></p></td>
<td>number of individual blocks making up the bar.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="gtk-progress-bar-set-activity-step"></a><h3>gtk_progress_bar_set_activity_step ()</h3>
<pre class="programlisting">void                gtk_progress_bar_set_activity_step  (<a class="link" href="GtkProgressBar.html" title="GtkProgressBar">GtkProgressBar</a> *pbar,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"
>guint</a> step);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gtk_progress_bar_set_activity_step</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
Sets the step value used when the progress bar is in activity
mode.  The step is the amount by which the progress is incremented
each iteration.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>pbar</code></em> :</span></p></td>
<td>a <a class="link" href="GtkProgressBar.html" title="GtkProgressBar"><span class="type">GtkProgressBar</span></a>.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>step</code></em> :</span></p></td>
<td>the amount which the progress is incremented in activity
mode.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="gtk-progress-bar-set-activity-blocks"></a><h3>gtk_progress_bar_set_activity_blocks ()</h3>
<pre class="programlisting">void                gtk_progress_bar_set_activity_blocks
                                                        (<a class="link" href="GtkProgressBar.html" title="GtkProgressBar">GtkProgressBar</a> *pbar,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"
>guint</a> blocks);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gtk_progress_bar_set_activity_blocks</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
Sets the number of blocks used when the progress bar is in activity
mode.  Larger numbers make the visible block smaller.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>pbar</code></em> :</span></p></td>
<td>a <a class="link" href="GtkProgressBar.html" title="GtkProgressBar"><span class="type">GtkProgressBar</span></a>.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>blocks</code></em> :</span></p></td>
<td>number of blocks which can fit within the progress bar area.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="gtk-progress-bar-update"></a><h3>gtk_progress_bar_update ()</h3>
<pre class="programlisting">void                gtk_progress_bar_update             (<a class="link" href="GtkProgressBar.html" title="GtkProgressBar">GtkProgressBar</a> *pbar,
                                                         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> percentage);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gtk_progress_bar_update</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
This function is deprecated.  Please use <a class="link" href="GtkProgress.html#gtk-progress-set-value" title="gtk_progress_set_value ()"><code class="function">gtk_progress_set_value()</code></a> or
<a class="link" href="GtkProgress.html#gtk-progress-set-percentage" title="gtk_progress_set_percentage ()"><code class="function">gtk_progress_set_percentage()</code></a> instead.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>pbar</code></em> :</span></p></td>
<td>a <a class="link" href="GtkProgressBar.html" title="GtkProgressBar"><span class="type">GtkProgressBar</span></a>.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>percentage</code></em> :</span></p></td>
<td>the new percent complete value.
</td>
</tr>
</tbody>
</table></div>
</div>
</div>
<div class="refsect1" lang="en">
<a name="GtkProgressBar.property-details"></a><h2>Property Details</h2>
<div class="refsect2" lang="en">
<a name="GtkProgressBar--activity-blocks"></a><h3>The <code class="literal">"activity-blocks"</code> property</h3>
<pre class="programlisting">  "activity-blocks"          <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"
>guint</a>                 : Read / Write</pre>
<p>The number of blocks which can fit in the progress bar area in activity mode (Deprecated).</p>
<p>Allowed values: &gt;= 2</p>
<p>Default value: 5</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="GtkProgressBar--activity-step"></a><h3>The <code class="literal">"activity-step"</code> property</h3>
<pre class="programlisting">  "activity-step"            <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"
>guint</a>                 : Read / Write</pre>
<p>The increment used for each iteration in activity mode (Deprecated).</p>
<p>Default value: 3</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="GtkProgressBar--adjustment"></a><h3>The <code class="literal">"adjustment"</code> property</h3>
<pre class="programlisting">  "adjustment"               <a class="link" href="GtkAdjustment.html" title="GtkAdjustment">GtkAdjustment</a>*        : Read / Write</pre>
<p>The GtkAdjustment connected to the progress bar (Deprecated).</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="GtkProgressBar--bar-style"></a><h3>The <code class="literal">"bar-style"</code> property</h3>
<pre class="programlisting">  "bar-style"                <a class="link" href="GtkProgressBar.html#GtkProgressBarStyle" title="enum GtkProgressBarStyle">GtkProgressBarStyle</a>   : Read / Write</pre>
<p>Specifies the visual style of the bar in percentage mode (Deprecated).</p>
<p>Default value: GTK_PROGRESS_CONTINUOUS</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="GtkProgressBar--discrete-blocks"></a><h3>The <code class="literal">"discrete-blocks"</code> property</h3>
<pre class="programlisting">  "discrete-blocks"          <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"
>guint</a>                 : Read / Write</pre>
<p>The number of discrete blocks in a progress bar (when shown in the discrete style).</p>
<p>Allowed values: &gt;= 2</p>
<p>Default value: 10</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="GtkProgressBar--ellipsize"></a><h3>The <code class="literal">"ellipsize"</code> property</h3>
<pre class="programlisting">  "ellipsize"                <a
href="/usr/share/gtk-doc/html/pango/pango-Layout-Objects.html#PangoEllipsizeMode"
>PangoEllipsizeMode</a>    : Read / Write</pre>
<p>
The preferred place to ellipsize the string, if the progressbar does
not have enough room to display the entire string, specified as a 
<span class="type">PangoEllisizeMode</span>. 
</p>
<p>
Note that setting this property to a value other than 
<code class="literal">PANGO_ELLIPSIZE_NONE</code> has the side-effect that the progressbar requests 
only enough space to display the ellipsis "...". Another means to set a 
progressbar's width is <a class="link" href="GtkWidget.html#gtk-widget-set-size-request" title="gtk_widget_set_size_request ()"><code class="function">gtk_widget_set_size_request()</code></a>.</p>
<p>
</p>
<p>Default value: PANGO_ELLIPSIZE_NONE</p>
<p>Since 2.6</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="GtkProgressBar--fraction"></a><h3>The <code class="literal">"fraction"</code> property</h3>
<pre class="programlisting">  "fraction"                 <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a>               : Read / Write</pre>
<p>The fraction of total work that has been completed.</p>
<p>Allowed values: [0,1]</p>
<p>Default value: 0</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="GtkProgressBar--orientation"></a><h3>The <code class="literal">"orientation"</code> property</h3>
<pre class="programlisting">  "orientation"              <a class="link" href="GtkProgressBar.html#GtkProgressBarOrientation" title="enum GtkProgressBarOrientation">GtkProgressBarOrientation</a>  : Read / Write</pre>
<p>Orientation and growth direction of the progress bar.</p>
<p>Default value: GTK_PROGRESS_LEFT_TO_RIGHT</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="GtkProgressBar--pulse-step"></a><h3>The <code class="literal">"pulse-step"</code> property</h3>
<pre class="programlisting">  "pulse-step"               <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a>               : Read / Write</pre>
<p>The fraction of total progress to move the bouncing block when pulsed.</p>
<p>Allowed values: [0,1]</p>
<p>Default value: 0.1</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="GtkProgressBar--text"></a><h3>The <code class="literal">"text"</code> property</h3>
<pre class="programlisting">  "text"                     <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a>*                : Read / Write</pre>
<p>Text to be displayed in the progress bar.</p>
<p>Default value: NULL</p>
</div>
</div>
<div class="refsect1" lang="en">
<a name="GtkProgressBar.style-property-details"></a><h2>Style Property Details</h2>
<div class="refsect2" lang="en">
<a name="GtkProgressBar--s-min-horizontal-bar-height"></a><h3>The <code class="literal">"min-horizontal-bar-height"</code> style property</h3>
<pre class="programlisting">  "min-horizontal-bar-height" <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a>                  : Read / Write</pre>
<p>
Minimum horizontal height of the progress bar.</p>
<p>
</p>
<p>Allowed values: &gt;= 1</p>
<p>Default value: 20</p>
<p>Since 2.14</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="GtkProgressBar--s-min-horizontal-bar-width"></a><h3>The <code class="literal">"min-horizontal-bar-width"</code> style property</h3>
<pre class="programlisting">  "min-horizontal-bar-width" <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a>                  : Read / Write</pre>
<p>
The minimum horizontal width of the progress bar.</p>
<p>
</p>
<p>Allowed values: &gt;= 1</p>
<p>Default value: 150</p>
<p>Since 2.14</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="GtkProgressBar--s-min-vertical-bar-height"></a><h3>The <code class="literal">"min-vertical-bar-height"</code> style property</h3>
<pre class="programlisting">  "min-vertical-bar-height"  <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a>                  : Read / Write</pre>
<p>
The minimum vertical height of the progress bar.</p>
<p>
</p>
<p>Allowed values: &gt;= 1</p>
<p>Default value: 80</p>
<p>Since 2.14</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="GtkProgressBar--s-min-vertical-bar-width"></a><h3>The <code class="literal">"min-vertical-bar-width"</code> style property</h3>
<pre class="programlisting">  "min-vertical-bar-width"   <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a>                  : Read / Write</pre>
<p>
The minimum vertical width of the progress bar.</p>
<p>
</p>
<p>Allowed values: &gt;= 1</p>
<p>Default value: 22</p>
<p>Since 2.14</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="GtkProgressBar--s-xspacing"></a><h3>The <code class="literal">"xspacing"</code> style property</h3>
<pre class="programlisting">  "xspacing"                 <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a>                  : Read / Write</pre>
<p>Extra spacing applied to the width of a progress bar.</p>
<p>Allowed values: &gt;= 0</p>
<p>Default value: 7</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="GtkProgressBar--s-yspacing"></a><h3>The <code class="literal">"yspacing"</code> style property</h3>
<pre class="programlisting">  "yspacing"                 <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a>                  : Read / Write</pre>
<p>Extra spacing applied to the height of a progress bar.</p>
<p>Allowed values: &gt;= 0</p>
<p>Default value: 7</p>
</div>
</div>
</div>
<div class="footer">
<hr>
          Generated by GTK-Doc V1.11</div>
</body>
</html>
